package jsyf.oa.entity.pm;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 92852 on 2018/4/17.
 */
@Entity
@Table(name = "T_PM_PLAN", schema = "oa", catalog = "")
public class ProjectPlanEntity extends BaseEntity{
    private String id;
    private String projectId;
    private String planDate;
    private String createUserId;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getPlanDate() {
        return planDate;
    }

    public void setPlanDate(String planDate) {
        this.planDate = planDate;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("PROJECT_ID", this.getProjectId());
        obj.put("PLAN_DATE", this.getPlanDate());
        obj.put("CREATE_USER_ID", this.getCreateUserId());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_PM_PLAN";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("PROJECT_ID", "projectId");
        obj.put("PLAN_DATE", "planDate");
        obj.put("CREATE_USER_ID", "createUserId");
        return obj;
    }
}
